package miiteen.customsportal.film.dao;

import org.springframework.stereotype.Repository;
import miiteen.data.dao.impl.BaseDaoImpl;
import miiteen.customsportal.film.beans.FilmInfo;

import java.util.List;
import java.util.Map;

/**
 * Name: CustomsPortal_Film_Info
 * Des: -Dao
 * Author: yulp
 * Date: 2020-07-03
 */
@Repository("filmInfoDao")
public class FilmInfoDao extends BaseDaoImpl<FilmInfo> {

    @Override
    protected String getMapper() {
        return "miiteen.customsportal.film.beans.FilmInfo";
    }

    public List<FilmInfo> findByMapPreviousNext(Map<String, Object> conditionMap) {
        List<FilmInfo> list = getSqlSession().selectList(getMapper() + ".findByMapPreviousNext", conditionMap);
        return list;
    }

    public  List<FilmInfo>      getpages(Map<String, Object> conditionMap){
        List<FilmInfo> o = getSqlSession().selectList(getMapper() + ".getpage",conditionMap);
        return o;
    }

}
